package indi.zhifa.study2025.class002.account.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import indi.zhifa.study2025.class002.account.gen.entity.json.RoleInfo;
import indi.zhifa.study2025.class002.common.mpenhence.entity.po.SysBaseEntity;
import lombok.Data;

import java.util.List;

@TableName(value = "user",autoResultMap = true)
@Data
public class GenUserEntity extends SysBaseEntity {
    String userName;
    String passwd;
    String nickName;
    @TableField(typeHandler = Fastjson2TypeHandler.class)
    List<RoleInfo> roles;
}
